package cn.sdormitory.knowledgebase.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class StudySkillsVo {
    @ApiModelProperty(value="主键")
    private Integer id;
    @ApiModelProperty(value="技能标题")
    private String title;
    @ApiModelProperty(value="技能封面图")
    private String img;
    @ApiModelProperty(value="技能类型")
    private Integer type;
    @ApiModelProperty(value="考试题数")
    private Integer examNum;
    @ApiModelProperty(value="周期学习(0:否 1:是)")
    private Boolean cycle;
    @ApiModelProperty(value="是否必学(0:否 1:是)")
    private Boolean mustLearn;
    @ApiModelProperty(value="状态(0:下架 1:上架)")
    private Boolean status;
    @ApiModelProperty(value="创建时间")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


    @ApiModelProperty(value="技能批次id")
    private Integer skillsBatchId;
    @ApiModelProperty(value="学习批次(0:永久)")
    private Integer studyBatch;


    @ApiModelProperty(value="关联试题数量")
    private Integer hasQuestions;
}
